package com.spic.business.contractorsync.domain;

import com.spic.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 供应商人员同步对象 contractor_person
 * 
 * @author spic
 * @date 2022-06-05
 */
public class ContractorPerson
{
    private static final long serialVersionUID = 1L;

    private Long id;

    /** 承包商id */
    private Long contractorId;

    /** 承包商名字 */
    @NotBlank(message = "承包商名称不能为空")
    private String contractorName;

    /** 身份证号 */
    @NotBlank(message = "身份证号不能为空")
    private String personIdcard;

    /** 人员姓名 */
    @NotBlank(message = "名字不能为空")
    private String personName;

    /** 岗位层级 */
    private String personDuty;

    /** 工种 */
    private String personMajor;

    public Date getSyncTime() {
        return syncTime;
    }

    public void setSyncTime(Date syncTime) {
        this.syncTime = syncTime;
    }

    public String getSyncHK() {
        return syncHK;
    }

    public void setSyncHK(String syncHK) {
        this.syncHK = syncHK;
    }

    public String getAccessAuth() {
        return accessAuth;
    }

    public void setAccessAuth(String accessAuth) {
        this.accessAuth = accessAuth;
    }

    /** base64照片 */
    @NotBlank(message = "承包商人员照片不能为空")
    private String personPhoto;

    private Date syncTime;

    private String syncHK;

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    private String personId;

    private String accessAuth;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setContractorId(Long contractorId) 
    {
        this.contractorId = contractorId;
    }

    public Long getContractorId() 
    {
        return contractorId;
    }
    public void setContractorName(String contractorName) 
    {
        this.contractorName = contractorName;
    }

    public String getContractorName() 
    {
        return contractorName;
    }
    public void setPersonIdcard(String personIdcard) 
    {
        this.personIdcard = personIdcard;
    }

    public String getPersonIdcard() 
    {
        return personIdcard;
    }
    public void setPersonName(String personName) 
    {
        this.personName = personName;
    }

    public String getPersonName() 
    {
        return personName;
    }
    public void setPersonDuty(String personDuty) 
    {
        this.personDuty = personDuty;
    }

    public String getPersonDuty() 
    {
        return personDuty;
    }
    public void setPersonMajor(String personMajor) 
    {
        this.personMajor = personMajor;
    }

    public String getPersonMajor() 
    {
        return personMajor;
    }
    public void setPersonPhoto(String personPhoto) 
    {
        this.personPhoto = personPhoto;
    }

    public String getPersonPhoto() 
    {
        return personPhoto;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contractorId", getContractorId())
            .append("contractorName", getContractorName())
            .append("personIdcard", getPersonIdcard())
            .append("personName", getPersonName())
            .append("personDuty", getPersonDuty())
            .append("personMajor", getPersonMajor())
            .append("personPhoto", getPersonPhoto())
            .toString();
    }
}
